.class Lcom/waiqin365/lightapp/product/an;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/product/view/e;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/offlinedata/s;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->a(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->e(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->a(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 10

    const-wide/16 v6, 0x0

    const/4 v0, 0x0

    move v2, v0

    move-wide v4, v6

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->e(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v2, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->e(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    instance-of v0, v1, Lcom/waiqin365/lightapp/product/view/CountView;

    if-eqz v0, :cond_0

    move-object v0, v1

    check-cast v0, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/view/CountView;->e()Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    check-cast v1, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/view/CountView;->c()Ljava/lang/Double;

    move-result-object v0

    invoke-static {v0, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v0

    mul-double/2addr v0, v8

    add-double/2addr v4, v0

    :cond_0
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->a(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->e(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/an;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;->f(Lcom/waiqin365/lightapp/product/ProductDetailActivityNewForReturnGoods;)V

    return-void
.end method
